package com.openthree.userport.api;

import com.openthree.userport.vo.FormData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
@FeignClient(value = "user-port")
public interface PublishPortApi {




    @RequestMapping(value = "/test")
    String test(MultipartFile[] files)throws IOException;

    @RequestMapping(value = "/uploadPortImage")
    String uploadPortImage(@RequestParam(name = "file") MultipartFile file,FormData formData)throws Exception;

    @RequestMapping(value = "/publishPort")
    String publishPort(FormData formData)throws Exception;

}
